<template>
  <div id="app">
    <!--  -->
    <router-view/>  
  </div>
</template>
<script>
export default {
  beforeMount() {
    let user = localStorage.getItem("user");
    user = JSON.parse(user);
    if (user != null) {
      this.$store.commit("addUser", user);
      this.$store.commit("setIsSigned");
    }
  }
};
</script>

<style>
#app {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  background-color: #f6f6f6;
  color: #2c3e50;
}
.app {
  background-color: #ffffff;
}
.top-10{
  margin-top: 10px;
}
</style>